package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;

/**
 * 说明:ENEITY类
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public class EmpTExpress implements java.io.Serializable {
		Long id;
		/**
		 * pk
		 * 快递公司代码
		 **/
		String expressCode;
		/**
		 * 快递公司名称
		 **/
		String expressName;
		/**
		 * 状态1:可用；0：停用
		 **/
		String status;
		/**
		 * 所属机构
		 **/
		private Long deptId;
		private VDepartment dept;
		/**
		 * 联系电话
		 **/
		String tel;
		/**
		 * 联系人
		 **/
		String contact;
		/**
		 * 地址
		 **/
		String addr;
		/**
		 * 备注
		 **/
		String note;
		/**
		 * 快递查询地址
		 **/
		String jumpUrl;
		/**
		 * 网站
		 **/
		String website;
		/**
		 * 创建人
		 **/
		private VUser createUser;
		/**
		 * 创建日期
		 **/
		Date createDate;
	
	public EmpTExpress(){
	}
	
		public String getExpressCode(){
			return this.expressCode;
		}		
		public void setExpressCode(String expressCode){
			this.expressCode = expressCode;
		}
		public String getExpressName(){
			return this.expressName;
		}		
		public void setExpressName(String expressName){
			this.expressName = expressName;
		}
		public String getTel(){
			return this.tel;
		}		
		public void setTel(String tel){
			this.tel = tel;
		}
		public String getContact(){
			return this.contact;
		}		
		public void setContact(String contact){
			this.contact = contact;
		}
		public String getAddr(){
			return this.addr;
		}		
		public void setAddr(String addr){
			this.addr = addr;
		}
		public String getNote(){
			return this.note;
		}		
		public void setNote(String note){
			this.note = note;
		}
		public String getJumpUrl(){
			return this.jumpUrl;
		}		
		public void setJumpUrl(String jumpUrl){
			this.jumpUrl = jumpUrl;
		}
		public String getWebsite(){
			return this.website;
		}		
		public void setWebsite(String website){
			this.website = website;
		}

		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public Long getDeptId() {
			return deptId;
		}

		public void setDeptId(Long deptId) {
			this.deptId = deptId;
		}

		public VDepartment getDept() {
			return dept;
		}

		public void setDept(VDepartment dept) {
			this.dept = dept;
		}

		public VUser getCreateUser() {
			return createUser;
		}

		public void setCreateUser(VUser createUser) {
			this.createUser = createUser;
		}

		public Date getCreateDate() {
			return createDate;
		}

		public void setCreateDate(Date createDate) {
			this.createDate = createDate;
		}

		public Long getId() {
			return id;
		}

		public void setId(Long id) {
			this.id = id;
		}

		public String getStatusStr(){
			if(this.status.equals("1"))
				return "启用";
			else
				return "停用";
		}
		public String getCreateDateStr(){
			return DateUtil.dateToString(this.createDate,DateUtil.patternE);
		}
	
}